﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopShopCat : BaseObject
    {
        //begin
        public TopShopCat(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _Cid;
        [Size(SizeAttribute.Unlimited)]
        public string Cid
        {
            get
            {
                return _Cid;
            }
            set
            {
                SetPropertyValue("Cid", ref _Cid, value);
            }
        }
        private string _ParentCid;
        [Size(SizeAttribute.Unlimited)]
        public string ParentCid
        {
            get
            {
                return _ParentCid;
            }
            set
            {
                SetPropertyValue("ParentCid", ref _ParentCid, value);
            }
        }
        private string _Name;
        [Size(SizeAttribute.Unlimited)]
        public string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                SetPropertyValue("Name", ref _Name, value);
            }
        }
        private bool _IsParent;
        public bool IsParent
        {
            get
            {
                return _IsParent;
            }
            set
            {
                SetPropertyValue("IsParent", ref _IsParent, value);
            }
        }
        //end
    }
}
